package com.lanou3g.code0409.common;

import java.util.Scanner;

/**
 * Created by dllo on 18/4/9.
 */
public class RepeatTest {

    // 用户输入两次密码 判断是否一致

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        System.out.println("请输入密码");
        String pwd = scanner.nextLine();
        System.out.println("请输入确认密码");
        String pwd2 = scanner.nextLine();

        if (pwd.equals(pwd2)) {
            System.out.println("密码一致");
        } else {
            System.out.println("密码不一致");
        }
    }
}
